package com.cdz.bus.domain;

import java.util.Date;

import com.cdz.common.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.cdz.common.core.domain.BaseEntity;

/**
 * 互通TOKEN管理对象 bus_token
 *
 * @author guyi
 * @date 2024-11-17
 */
@Data
@TableName(resultMap = "com.cdz.bus.mapper.BusTokenMapper.BusTokenResult")
public class BusToken extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /** 组织结构代码 */
    @Excel(name = "组织结构代码")
    private String enterpriseCode;

    /** token值 */
    @Excel(name = "token值")
    private String token;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date expireTime;

}